<?php

/**
 * Allows a FormItem object to be created from the inputs recieved from forms.
 * The form field name, and value can be set, making this object useful for form
 * error handling.
 * 
 * @author Matt Makins
 */
class FormItem{
	
	private $field;
	private $value;
	
	public function FormItem($value, $field){
		
		$this->field = $field;
		$this->value = $value;	
	}
	
	/**
	 * returns the value of the form item
	 * @return value
	 */
	public function getValue(){
		return $this->value;
	}
	
	/**
	 * returns the field name of the form item
	 * @return field
	 */
	public function getField(){
		return $this->field;
	}
}

?>
